# 输入一个数n, 再获取n个数, 判断能不能整除2,能打印yes 不能打印no
a = 0
n = int(input())
while a < n:
    f = int (input())
    if f%2==0:
        print('yes')
    else:
        print('no') 
    a += 1